package es.techideas.appsjam;

import com.google.android.maps.GeoPoint;

public class GreenPoint {

	private String name;
	
	private String schedule;
	
	private int latitude, longitude;
	
	private GeoPoint gp;
	
	public GreenPoint (String name, String schedule, int latitude, int longitude) {
		this.name = name;
		this.schedule = schedule;
		this.latitude = latitude;
		this.longitude = longitude;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSchedule() {
		return schedule;
	}

	public void setSchedule(String schedule) {
		this.schedule = schedule;
	}

	public int getLatitude() {
		return latitude;
	}

	public void setLatitude(int latitude) {
		this.latitude = latitude;
	}

	public int getLongitude() {
		return longitude;
	}

	public void setLongitude(int longitude) {
		this.longitude = longitude;
	}

	public GeoPoint getGp() {
		if ( gp == null ){
			gp = new GeoPoint(this.latitude, this.longitude);
		}
		return gp;
	}

	
	
}
